package com.amumu.drama.model;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.math.BigDecimal;
import java.sql.Timestamp;
import java.time.LocalDateTime;

@Getter
@Setter
@TableName(value = "invitation_anchor")
public class InvitationAnchor implements Serializable {

    private static final long serialVersionUID = -5056131486828638068L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 渠道备注
     */
    @TableField(value = "anchor_no")
    private String anchorNo;

    /**
     * 优惠码
     */
    @TableField(value = "code")
    private String code;

    /**
     * 创建人
     */
    @TableField(value = "creator")
    private String creator;

    @TableField( value = "create_time",fill = FieldFill.INSERT )
    private LocalDateTime createTime;

    @TableField( value = "start_time" )
    private LocalDateTime startTime;

    @TableField( value = "end_time")
    private LocalDateTime endTime;

    /**
     * 折扣，最大1.0
     */
    @TableField(value = "discount")
    private BigDecimal discount;

    /**
     * 限制领取数量
     */
    @TableField(value = "limit_count")
    private Integer limitCount;


    @ApiModelProperty("删除状态：0->未删除；1->已删除")
    @TableField(value = "delete_status")
    private Integer deleteStatus;

    /**
     * 使用状态；0->未使用；1->已使用
     */
    @TableField(value = "status")
    private Integer status;

    /**
     * 是否要求新用户；0->否；1->是
     */
    @TableField(value = "need_new_user")
    private Integer needNewUser;

    /**
     * 主播名称
     */
    @TableField(value = "anchor_name")
    private String anchorName;



}
